package com.lx.web.servlet;


import com.lx.bean.ForumBody;
import com.lx.service.ForumBodyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/forumBody")
public class ForumBodyController {
    @Autowired
    ForumBodyService forumBodyService;

    @ResponseBody
    @RequestMapping("/findByFid")
    public List<ForumBody> selectAllForum(Integer id) {
        //System.out.println(id+"aaaaaaaaaaaaaaaaa");
        return forumBodyService.selectForumById(id);
    }


}
